package cn.panda.edu.dao;

import cn.panda.edu.model.PartSection;

import java.util.List;

/**
 * 
 * 类描述：对小节表的增删改查  
 */
public interface PartSectionMapper {
	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: 根据id删除小节
	* @param @param partId
	* @param @return  
	* @return int
	 */
    int deleteByPrimaryKey(Integer partId);
    /**
     * 
    * @Title: selectBySectionId 
    * @Description: 查询章节详细信息
    * @param sectionId
    * @return  
    * List<PartSection>
     */
    List<PartSection> selectBySectionId(Integer sectionId) ;
    
    /**
     * 
    * @Title: insert 
    * @Description: 添加小节 
    * @param @param record
    * @param @return  
    * @return int
     */
    int insert(PartSection record);
    /**
     * 
    * @Title: insertSelective 
    * @Description: 动态添加小节 
    * @param @param record
    * @param @return  
    * @return int
     */
    int insertSelective(PartSection record);
    /**
     * 
    * @Title: selectByPrimaryKey 
    * @Description: 根据id查找小节
    * @param @param partId
    * @param @return  
    * @return PartSection
     */

    PartSection selectByPrimaryKey(Integer partId);
    /**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description: 动态修改小节
    * @param @param record
    * @param @return  
    * @return int
     */

    int updateByPrimaryKeySelective(PartSection record);
    /**
     * 
    * @Title: updateByPrimaryKey 
    * @Description: 修改小节 
    * @param @param record
    * @param @return  
    * @return int
     */

    int updateByPrimaryKey(PartSection record);
}